package flc.ast.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import flc.ast.BaseAc;
import flc.ast.R;
import flc.ast.databinding.ActivityMusicBinding;
import stark.common.basic.event.EventStatProxy;
import stark.common.bean.StkResBean;

public class MusicActivity extends BaseAc<ActivityMusicBinding> {

    public static StkResBean stkResBean;

    @Override
    protected int onCreate() {
        return R.layout.activity_music;
    }

    @Override
    protected void initView() {
        mDataBinding.ivMusicBack.setOnClickListener(v -> onBackPressed());
    }

    @Override
    protected void initData() {
        EventStatProxy.getInstance().statEvent1(this, mDataBinding.event1Container);

        mDataBinding.tvMusicTitle.setText(stkResBean.getName());
        mDataBinding.webView.loadUrl(stkResBean.getUrl());
    }
}